package com.mtnz.njk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
* @Description:    商品轮播图实体类
* @Author:         FBL
* @CreateDate:     2019\7\9 0009 9:32
* @Version:        1.0
*/
@Data
@Table(name = "banner")
public class BannerEntity {

    @Id
    @Column(name = "id")
    private String id;
    private String picture;
    @Column(name = "create_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    @Column(name = "banner_id")
    private String bannerId;
    @Column(name = "banner_type" )
    private Integer bannerType;
    @Column(name = "banner_name")
    private String bannerName;
    private String url;

    @Transient
    private ProductEntity productEntity;

    @Transient
    private ResearchEntity researchEntity;

}
